home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 22 / AACD 22.iso / AACD / Programming / powerd / modules.lha / modules / graphics / copper.m < prev    next >
Encoding:
Text File  |  2000-06-03  |  1.1 KB  |  61 lines

  1. MODULE    'graphics/view'
  2.  
  3. CONST    COPPER_MOVE=0,
  4.         COPPER_WAIT=1,
  5.         CPRNXTBUF=2,
  6.         CPR_NT_LOF=$8000,
  7.         CPR_NT_SHT=$4000,
  8.         CPR_NT_SYS=$2000
  9.  
  10. OBJECT CopIns
  11.     OpCode:INT,
  12. // a) next two INTs are unioned with "nxtlist:PTR TO coplist"
  13.     VWaitPos|DestAddr:INT,
  14.     HWaitPos|DestData:INT
  15.  
  16. #define VWAITPOS vwaitpos
  17. #define DESTADDR vwaitpos
  18. #define HWAITPOS hwaitpos
  19. #define DESTDATA hwaitpos
  20.  
  21. OBJECT CprList
  22.     Next:PTR TO CprList,
  23.     Start:PTR TO UWORD,
  24.     MaxCount:INT
  25.  
  26. OBJECT CopList
  27.     Next:PTR TO CopList,
  28.     _coplist_:PTR TO CopList,
  29.     _viewport:PTR TO ViewPort,
  30.     CopIns:PTR TO CopIns,
  31.     CopPtr:PTR TO CopIns,
  32.     CopLStart:PTR TO UWORD,
  33.     CopSStart:PTR TO UWORD,
  34.     Count:INT,
  35.     MaxCount:INT,
  36.     DYOffset:INT,
  37.     SLRepeat:UWORD,
  38.     Flags:UWORD
  39.  
  40. CONST    EXACT_LINE=1,
  41.         HALF_LINE=2
  42.  
  43. OBJECT UCopList
  44.     Next:PTR TO UCopList,
  45.     FirstCopList:PTR TO CopList,
  46.     CopList:PTR TO CopList
  47.  
  48. OBJECT CopInit
  49.     VSync_HBlank[2]:UWORD,
  50.     DiagStrt[12]:UWORD,
  51.     Fm0[2]:UWORD,
  52.     DiwStart[10]:UWORD,
  53.     BplCon2[2]:UWORD,
  54.     SprFix[16]:UWORD,
  55.     SprStrtUp[32]:UWORD,
  56.     Wait14[2]:UWORD,
  57.     Norm_HBlank[2]:UWORD,
  58.     Jump[2]:UWORD,
  59.     Wait_Forever[6]:UWORD,
  60.     SprStop[8]:UWORD
  61.